package org.linlinjava.litemall.admin.service;

import org.linlinjava.litemall.db.dao.LitemallGroupBuyUserMapper;
import org.linlinjava.litemall.db.domain.LitemallGroupBuyUser;
import org.linlinjava.litemall.db.domain.LitemallGroupBuyUserExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zhy
 * @date 2019-07-15 20:42
 **/
@Service
public class AdminGroupUserService {
	@Resource
	private LitemallGroupBuyUserMapper litemallGroupBuyUserMapper;

	public List<LitemallGroupBuyUser> getList(String name,Integer id){
		LitemallGroupBuyUserExample example = new LitemallGroupBuyUserExample();
		LitemallGroupBuyUserExample.Criteria criteria = example.createCriteria();
		if(id!=null){
			criteria.andGroupDetailIdEqualTo(id);
		}
		return litemallGroupBuyUserMapper.selectByExample(example);
	}


}
